import QtQuick 2.0

Item {
    width: 150
    height: 100
    Rectangle {
        width: 150
        height: 100
        border.color: "black"
        border.width: 2
        color: "skyblue"

        MouseArea {
            id: ma
            anchors.fill: parent
            onClicked: {
                parent.color = "tomato"
            }
        }
    }
}
